home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / devices / multi-~1.lzh / readme < prev   
Encoding:
Text File  |  1993-11-25  |  3.2 KB  |  74 lines

  1. This is Dave Gymer's raw MiNT floppy device hacked up to work as a .XDD
  2. driver and to handle multiple devices.
  3.  
  4. To build it you need the PureC compiler v1.1, I haven't tested with an
  5. another compiler... Send me a note if you succeed in compiling with an other
  6. C compiler!
  7.  
  8. The compiled devices got fd0 (ex-ps0.. fd0 seems more logical to me), fh0
  9. for HD 1.44meg and fx0, a fat HD format (1.6meg = 20 sectors/track).
  10. If you wish to add others devices (other drive, different density..), you
  11. just have to put their description in the array "drivers", and recompile!
  12. Then you got a ready-to-work nice XDD driver! 
  13.  
  14. How to add a device in "driver[]":
  15. {device_name, drive, tracks/side, sides, sectors/track, bytes/sector}
  16.  
  17. device_name:   ex: "fd0", "fh0", "ps0"...
  18.                Note that all the devices will be in /dev
  19. drive:         0 for drive A:, 1 for drive B: (no harddisk!)
  20. tracks/side:   80 is the standard
  21. sides:         1 (single-sided) or 2 (double-sided)
  22. sectors/track: 9 is for DD MS-DOS disks, 18 for HD MS-DOS disks, 36 for ED disks.
  23.                Of course don't surestimate your drive... If you put a greater
  24.                value than standard it might be unreliable and slower!
  25. bytes/sector:  512 is the standard
  26.  
  27. adviced values for sectors/track (values between braces are standard values)
  28. DD 3'5 : [9] 10 11
  29. HD 5'25: [15] 16 17
  30. HD 3'25: [18] 19 20 21 22
  31. ED     : [36] 37 38 39 40
  32. beware of higher values!
  33.  
  34. -- Stephane Boisson (Nucleus)
  35. boisso_s@epita.fr
  36.  
  37. Here is the original readme file from dave Gymer
  38. ------------------------------------------------------------------------------
  39. ps0 - a simple raw floppy device driver
  40. Written by Dave Gymer and placed in the public domain.
  41.  
  42. Basically, what this program does is to install a character special
  43. device called /dev/ps0 (the name is adjustable) which can be manipulated
  44. almost like a normal file, but whose contents reflect the contents of the
  45. floppy disk in drive A: (also adjustable).
  46.  
  47. There are a few things you can't do with /dev/ps0 that you can with a real
  48. file:
  49.     - delete it (well, you can, but then the device driver is lost and
  50.     must be reloaded)
  51.     - alter it's length (this is fixed at the length of the disk; attempts
  52.     to seek further will silently fail)
  53.     - stat it (again, you can, but you don't get anything useful out)
  54.  
  55. By default, it read double sided, 9 sector/track, 80 track disks in drive A:,
  56. but you can alter all these things in the source and recompile.
  57.  
  58. I wrote this program after buying a 386 PC to run Linux on; the easiest way
  59. to transfer files is via /dev/ps0 on the PC, but there was no MiNT equivalent.
  60. At first I used a program called STraw (ST rawrite) which I knocked up in a
  61. night, but I stupidly went and deleted the source, so I wrote this instead.
  62. Good, huh?
  63.  
  64. You should add a line to your mint.cnf file to install it, along the lines of
  65.     exec c:\mintboot\ps0.tos
  66.  
  67. Quick hint: if you use the GNU fileutils under MiNT, do _not_ use cp to
  68. write files to /dev/ps0, cos it does them a byte at a time! Instead, use
  69. `cat file >/dev/ps0'. Maybe one day Eric Smith will add proper block-special
  70. devices to MiNT. But what do I care? :-) I run Eunuchs! 8^}
  71.  
  72. -- Dave Gymer
  73. dpg@Cs.Nott.AC.UK
  74.